<script type="text/javascript">
$(function(){
    $.fn.dataGridOptions.formSubFun("#form",'/modules/column/link/linkAdd.html'); //表单提交  参数1：表单id 参数2：表单action地址
});
</script>
<div class="popForm">
    <form id="form"  method="post" enctype="multipart/form-data">
		<div class="formitm">
		     <label class="lab">标题：</label>
		     <div class="ipt">
		     	<input type="text" name="title" class="w400 easyui-validatebox" data-options="required: true,validType:'length[1,50]'" maxlength="50"/>
		     	<b>*</b>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">状态：</label>
		     <div class="ipt">
		     	<input type="radio" name="status" value="0" checked="checked"/>&nbsp;&nbsp;隐藏
				<input type="radio" name="status" value="1"/>&nbsp;&nbsp;显示
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">排序：</label>
		     <div class="ipt">
		     	<input type="text" name="sort" class="easyui-numberbox" data-options="required:true,validType:'length[1,4]'" maxlength="4"/>
		     	<b>*</b>
		     </div>
		</div>

		<div class="formitm">
			<label class="lab">类型：</label>
			<div class="ipt">
				<select name="type" id="type" ;>
					<option value="1" selected="selected">友情链接</option>
				</select>
			</div>
      </div>

		<div class="formitm">
			<label class="lab">链接地址：</label>
			<div class="ipt">
				<input type="text" name="url" class="w400 easyui-validatebox">
			</div>
		</div>
		<div class="formitm">
		     <label class="lab">图片：</label>
		     <div class="ipt">
		     	<input type="file" name="file">	
		     </div>
		</div>
	</form>
</div>
